package com.bdqn.vueboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 会议表
 *
 * @TableName conference_root
 */
@TableName(value = "conference_root")
@Data
public class ConferenceRoot implements Serializable {
    /**
     * 单号
     */
    @TableId(type = IdType.AUTO)
    private Long odd;

    /**
     * 会议名称
     */
    private String conferenceTitle;

    /**
     * 会议室id
     */
    private Integer conferenceRoomid;

    /**
     * 开会时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime meetingTime;

    /**
     * 申请人
     */
    @TableField(value = "applicant")
    private String applicantid;

    /**
     * 所属部门Id
     */
    @TableField(value = "department_Id")
    private Integer departmentid;

    /**
     * 申请时间
     */
    /**
     * 时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeApplication;

    /**
     * 会议状态
     */
    private Integer meetingStatusId;

    /**
     * 参与人数
     */
    private Integer numberParticipants;

    /**
     * 会议要求
     */
    private String meetingRequest;

    /**
     * 会议类型Id
     */
    private Integer typeId;
    /**
     * 会议类型Id
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer isDele;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT, value = "creation_Id")
    private Long creationId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, value = "creation_Time")
    private LocalDateTime creationTime;

    /**
     * 修改者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "update_Id")
    private Long updateId;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "update_Time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    //    List<Conference> conferenceList;
    //会议室表
    @TableField(exist = false)
    Conference conference;
    //部门表
    @TableField(exist = false)
    Department department;

}
